package com.briup.day14;

import com.briup.day14.bean.Animal;
import com.briup.day14.bean.Cat;
import com.briup.day14.bean.Dog;

/**
 * @author ThinkBook
 */
public class Test01_Abstract {
    public static void main(String[] args) {
//        Animal a = new Animal();
//        a.eat();
//        a.sleep();

        System.out.println("------------");
        Animal a = new Cat();
        a.eat();
        a.sleep();

        System.out.println("------------");
        a = new Dog();
        a.eat();
        a.sleep();
    }
}
